package com.ruoyi.sale.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.sale.domain.Plan;
import com.ruoyi.sale.domain.PlanProcess;
import com.ruoyi.sale.domain.vo.PlanProcessVo;
import com.ruoyi.sale.domain.vo.PlanVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface PlanProcessMapper extends BaseMapper<PlanProcess> {

    /**
     * 查询审核流程状态
     * @param planId
     * @return
     */
    List<String> selectStatusesByPlanId(@Param("planId")Long planId);
    /**
     * 查询审核流程
     * @param planId
     * @return
     */
    List<PlanProcessVo> getPlanProcessList(Long planId);
    /**
     * 我已审核的销售计划
     * @param plan
     * @return
     */
    List<PlanVo> getPlanReadyProcessList(PlanVo plan);
    /**
     * 我发起的销售计划
     * @param plan
     * @return
     */
    List<PlanVo> getPlanMyProcessList(PlanVo plan);
}
